import mesage from '@/components/page/mesage'
// import login from '@/components/page/login'
import login from '@/components/page/addVue/login'
import cms from '@/components/page/cms'
// import register from '@/components/page/register'
import register from '@/components/page/addVue/register'
import forgetPassword from '@/components/page/resetpwd/forgetPassword'
import revisePassword from '@/components/page/personal/revisePassword'
import bindMobile from '@/components/page/personal/bindMobile'
import closeMobileVerify from '@/components/page/personal/closeMobileVerify'
import bindEmail from '@/components/page/personal/bindEmail'
import googleBind from '@/components/page/personal/googleBind'
import funds from '@/components/page/funds/funds_manage'
import finance from '@/components/page/funds/finance_manage'
import address from '@/components/page/funds/address_manage'
import fundsDetail from '@/components/page/funds/funds_detail'
import detail from '@/components/page/question/detail'
import order from '@/components/page/personal/addPage/order'
import noticeInfo from '@/components/page/noticeInfo'
import helpCenter from '@/components/page/helpCenter'
import home from '@/components/page/home/main'

import rate from '@/components/addPage/rate'
import invitation from '@/components/addPage/invitation'  // 邀请排行榜
import candyTask from '@/components/addPage/candyTask' // 糖果福利
import candyReward from '@/components/addPage/candyTask/candyReward' // 糖果福利明细

// 新增个人中心组件
import personal from '@/components/addPage/personal'

import inviteFriends from '@/components/addPage/invitation/inviteFriends' // 邀请好友
import inviteReward from '@/components/addPage/invitation/inviteReward' // 邀请奖励
import inviteCommission from '@/components/addPage/invitation/inviteCommission' // 邀请佣金
import information from '@/components/addPage/information' // 个人资料
import infoAttestation from '@/components/page/personal/addPage/infoAttestation' // 实名认证
import securityCenter from '@/components/addPage/securityCenter'

import payMethod from '@/components/addPage/payMethod'

import myApi from '@/components/addPage/myApi'
import question from '@/components/addPage/questions'
import hisRecord from '@/components/addPage/historyRecord'
import setExPassW from '@/components/page/personal/addPage/setExPassW'
import flash from '@/components/addPage/flash'

import income from '@/components/addPage/income' // 生态收益
import openPlatform from '@/components/addPage/openPlatform' // 开放平台

import bideli from '@/components/addPage/bideli' // 币得利
import bideliBuy from '@/components/addPage/saveMoneyLive/bideliBuy' // 币得利购买页
import bideliRecord from '@/components/addPage/saveMoneyLive/bideliRecord' // 币得利记录

export default [
  {
    // 首页
    path: '/index',
    name: 'index',
    meta: {
      title: 'index'
    },
    component: home
  },
  {
    // 登录
    path: '/login',
    name: 'login',
    meta: {
      title: 'login'
    },
    component: login
  },
  {
    path: '/cms',
    name: 'cms',
    meta: {
      title: 'cms'
    },
    component: cms
  },
  {
    // 注册
    path: '/register',
    name: 'register',
    meta: {
      title: 'register'
    },
    component: register
  },
  {
    // 忘记密码
    path: '/forgetPassword',
    name: 'forgetPassword',
    meta: {
      title: 'forgetPassword'
    },
    component: forgetPassword
  },
  {
    // 资金管理
    path: '/funds',
    redirect: '/funds/funds_manage'
  },
  {
    // 资金管理
    path: '/funds/funds_manage',
    name: 'funds',
    meta: {
      title: 'funds'
    },
    component: funds
  },
  {
    // 资金流水
    path: '/funds/finance_manage',
    name: 'finance',
    meta: {
      title: 'finance'
    },
    component: finance
  },
  {
    // 地址管理
    path: 'funds/address_manage',
    name: 'address',
    meta: {
      title: 'address'
    },
    component: address
  },
  {
    // 查看详情
    path: 'funds/funds_detail',
    name: 'fundsDetail',
    meta: {
      title: 'fundsDetail'
    },
    component: fundsDetail
  },
  {
    // 订单管理
    path: '/order',
    name: 'order',
    meta: {
      title: 'order'
    },
    component: order
  },
  // 公告
  {
    path: '/notice_info',
    name: 'notice_info',
    meta: {
      title: 'notice_info'
    },
    component: noticeInfo
  },
  // 帮助中心
  {
    path: '/help_center',
    name: 'help_center',
    meta: {
      title: 'help_center'
    },
    component: helpCenter
  },
  // 以下组建是我自己写的
  // 平台费率
  {
    path: '/rate',
    name: 'rate',
    meta: {
      title: 'Platform_rate'
    },
    component: rate
  },
  { // 糖果页面
    path: '/candyTask',
    name: 'candyTask',
    meta: {
      title: 'candyTask'
    },
    component: candyTask
  },
  {  // 糖果详情
    path: '/candyReward',
    name: 'candyReward',
    meta: {
      title: 'candyReward'
    },
    component: candyReward
  },
  { // 个人中心组件
    path: 'personal',
    name: 'personal',
    component: personal,
    children: [
      { // 邀请返佣首页
        path: 'invitation',
        name: 'invitation',
        meta: {
          title: 'invitation'
        },
        component: invitation
      },
      { // 已邀请好友
        path: 'inviteFriends',
        name: 'inviteFriends',
        meta: {
          title: 'inviteFriends'
        },
        component: inviteFriends
      },
      { // 邀请奖励
        path: 'inviteReward',
        name: 'inviteReward',
        meta: {
          title: 'inviteReward'
        },
        component: inviteReward
      },
      { // 邀请佣金
        path: 'inviteCommission',
        name: 'inviteCommission',
        meta: {
          title: 'inviteCommission'
        },
        component: inviteCommission
      },
      { // 个人资料
        path: 'information',
        name: 'information',
        meta: {
          title: 'information'
        },
        component: information
      },
      { // 实名认证
        path: 'infoAttestation',
        name: 'infoAttestation',
        meta: {
          title: 'infoAttestation'
        },
        component: infoAttestation
      },
      {
        path: 'securityCenter',
        name: 'securityCenter',
        meta: {
          title: 'securityCenter'
        },
        component: securityCenter
      },
      {
        path: 'payMethod',
        name: 'payMethod',
        meta: {
          title: 'payMethod'
        },
        component: payMethod
      },
      {
        path: 'api',
        name: 'api',
        meta: {
          title: 'api'
        },
        component: myApi
      },
      {
        path: 'mesage',
        name: 'mesage',
        meta: {
          title: 'mesage'
        },
        component: mesage
      },
      {
        path: 'question',
        name: 'question',
        meta: {
          title: 'question'
        },
        component: question
      },
      {
        path: 'detail',
        naem: 'detail',
        meta: {
          title: 'detail'
        },
        component: detail
      },
      {
        path: 'hisRecord',
        name: 'hisRecord',
        meta: {
          title: 'hisRecord'
        },
        component: hisRecord
      },
      {
        // 修改登录密码
        path: 'revisePassword',
        name: 'revisePassword',
        meta: {
          title: 'revisePassword'
        },
        component: revisePassword
      },
      {
        // 绑定、修改手机号
        path: 'bindMobile',
        name: 'bindMobile',
        meta: {
          title: 'bindMobile'
        },
        component: bindMobile
      },
      {
        // 关闭手机验证
        path: 'closeMobileVerify',
        name: 'closeMobileVerify',
        meta: {
          title: 'closeMobileVerify'
        },
        component: closeMobileVerify
      },
      {
        // 绑定、修改邮箱
        path: 'bindEmail',
        name: 'bindEmail',
        meta: {
          title: 'bindEmail'
        },
        component: bindEmail
      },
      {
        // Google 认证
        path: 'googlebind',
        name: 'googleBind',
        meta: {
          title: 'googleBind'
        },
        component: googleBind
      },
      {
        // 设置交易密码
        path: 'setExPassW',
        name: 'setExPassW',
        meta: {
          title: 'setExPassW'
        },
        component: setExPassW
      }
    ]
  },
  { // 生态收益
    path: '/income',
    name: 'income',
    meta: {
      title: 'income'
    },
    component: income
  },
  {
    path: '/flash',
    name: 'flash',
    meta: {
      title: 'flash'
    },
    component: flash
  },
  {
    path: '/openPlatform',
    name: 'openPlatform',
    meta: {
      title: 'openPlatform'
    },
    component: openPlatform
  },
  {
    path: '/bideli',
    name: 'bideli',
    meta: {
      title: 'bideli'
    },
    component: bideli
  },
  {
    path: '/bideliBuy',
    name: 'bideliBuy',
    meta: {
      title: 'bideliBuy'
    },
    component: bideliBuy
  },
  {
    path: '/bideliRecord',
    name: 'bideliRecord',
    meta: {
      title: 'bideliRecord'
    },
    component: bideliRecord
  }
]
